//当你点击添加商品到购物车的按钮时，获取商品id 与用户id
function addProduct() {
    var customerId = 1;
    var productId = 1;
    $.ajax({
        type:"GET",
        url:"/cart/add/"+customerId+productId,
        dataType:"json",
        success:function (result) {
            console.log(result);
            if (result.status ==1){
                //成功，
                console.log("添加成功");
            }else {
                console.log("添加失败");
            }
        }
    })
};


